from io import StringIO

# try:
#     f = open('E:\crm\doc\CRM+Nginx+mysql读写分离部署文档.txt', 'r')
#     print(f.read())
# finally:
#     if f:
#         f.close()

with open('E:\crm\doc\CRM+Nginx+mysql读写分离部署文档.txt', 'r', encoding='utf-8') as f:
	for line in f.readlines():
		print(line.strip())

# with open('F:\photos\重庆&成都\IMG_20190301_142042.jpg', 'rb') as c:
#     for line in c.readlines():
#         print(line)

f = StringIO()
f.write("hello")
print(f.getvalue())

with open('D:\\test.txt', 'w') as f:
	f.write('asdf')
